﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace PMS.XCMG.OpenApi
{
    public static class RedisKeysHelper
    {
        /// <summary>
        /// 当前正在配送的计划ID
        /// </summary>
        public static string Key_CurrentDeliveryPlanID = "PMS.Current.DeliveryPlanID";

        /// <summary>
        /// 料位状态前缀地址
        /// </summary>
        public static string PreLocMeterStatusAddress = "PMS.LocMeterStatus.";

        /// <summary>
        /// 料位物料编码前缀地址
        /// </summary>
        public static string PreLocMeterCodeAddress = "PMS.LocMeterCode.";

        /// <summary>
        /// 料位状态
        /// </summary>
        public static Dictionary<string, List<string>> Key_LocMeterStatus=new Dictionary<string, List<string>>() {
            { "a",new List<string>(){ "PMS.LocMeterStatus.A1", "PMS.LocMeterStatus.A2", "PMS.LocMeterStatus.A3", "PMS.LocMeterStatus.A4" } },
            { "b",new List<string>(){ "PMS.LocMeterStatus.B1", "PMS.LocMeterStatus.B2", "PMS.LocMeterStatus.B3", "PMS.LocMeterStatus.B4" } },
            { "c",new List<string>(){ "PMS.LocMeterStatus.C1", "PMS.LocMeterStatus.C2", "PMS.LocMeterStatus.C3", "PMS.LocMeterStatus.C4" } },
            { "d",new List<string>(){ "PMS.LocMeterStatus.D1" } },
            { "g",new List<string>(){ "PMS.LocMeterStatus.G1", "PMS.LocMeterStatus.G2", "PMS.LocMeterStatus.G3", "PMS.LocMeterStatus.G4" } },
            { "s",new List<string>(){ "PMS.LocMeterStatus.S1", "PMS.LocMeterStatus.S2"} },
        };

        /// <summary>
        /// 料位物料编码
        /// </summary>
        public static Dictionary<string, List<string>> Key_LocMeterCode = new Dictionary<string, List<string>>() {
            { "a",new List<string>(){ "PMS.LocMeterCode.A1", "PMS.LocMeterCode.A2", "PMS.LocMeterCode.A3", "PMS.LocMeterCode.A4" } },
            { "b",new List<string>(){ "PMS.LocMeterCode.B1", "PMS.LocMeterCode.B2", "PMS.LocMeterCode.B3", "PMS.LocMeterCode.B4" } },
            { "c",new List<string>(){ "PMS.LocMeterCode.C1", "PMS.LocMeterCode.C2", "PMS.LocMeterCode.C3", "PMS.LocMeterCode.C4" } },
            { "d",new List<string>(){ "PMS.LocMeterCode.D1" } },
            { "g",new List<string>(){ "PMS.LocMeterCode.G1", "PMS.LocMeterCode.G2", "PMS.LocMeterCode.G3", "PMS.LocMeterCode.G4" } },
            { "s",new List<string>(){ "PMS.LocMeterCode.S1", "PMS.LocMeterCode.S2"} },
        };
    }
}
